/*************************************************************************
 *                                                                       *
 * This file is part of the FreeMAPs distribution.  For full copyright   *
 * information, see COPYRIGHT and COPYING.LESSER.                        *
 *                                                                       *
 * Author:           sqbang                                              *
 * Email:            sqbang@ustc.edu                                     *
 * Date:             2011.09.25                                          *
 *                                                                       *
 *************************************************************************/

namespace FreeMAPs
{

inline bool
IrregularBoundaryConditions::is_used() const
{
    return (!d_bdry_conds.empty());
}


inline IrregularBoundaryConditions::const_iterator
IrregularBoundaryConditions::begin() const
{
    return d_bdry_conds.begin();
}


inline IrregularBoundaryConditions::const_iterator
IrregularBoundaryConditions::end() const
{
    return d_bdry_conds.end();
}


inline std::map<std::string, IrregularBoundaryConditionStrategy*>&
IrregularBoundaryConditions::get_boundaries()
{
    return d_bdry_conds;
}


inline const std::map<std::string, IrregularBoundaryConditionStrategy*>&
IrregularBoundaryConditions::get_boundaries()const
{
    return d_bdry_conds;
}

}
